home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Puzzle / Cubox.swf / scripts / DefineSprite_237 / frame_2 / DoAction.as
Text File  |  2004-06-30  |  1KB  |  80 lines

  1. tellTarget("win")
  2. {
  3.    gotoAndStop(1);
  4. }
  5. set("set","0");
  6. tellTarget("table")
  7. {
  8.    gotoAndStop(1);
  9. }
  10. Y = "1";
  11. G = "2";
  12. B = "3";
  13. P = "4";
  14. R = "5";
  15. hold = "0";
  16. green = "1";
  17. blue = "2";
  18. yellow = "3";
  19. red = "4";
  20. purple = "5";
  21. bumper = "6";
  22. slider = "7";
  23. ghost = "8";
  24. wheel = "9";
  25. set("table:Y","1");
  26. set("table:G","2");
  27. set("table:B","3");
  28. set("table:P","4");
  29. set("table:R","5");
  30. set("table:green","1");
  31. set("table:blue","2");
  32. set("table:yellow","3");
  33. set("table:red","4");
  34. set("table:purple","5");
  35. set("table:bumper","6");
  36. set("table:slider","7");
  37. set("table:ghost","8");
  38. set("table:wheel","9");
  39. BLANK = "1";
  40. while("9" >= BLANK)
  41. {
  42.    tellTarget("RED/tile" add BLANK)
  43.    {
  44.       gotoAndStop("blank");
  45.    }
  46.    tellTarget("PURPLE/tile" add BLANK)
  47.    {
  48.       gotoAndStop("blank");
  49.    }
  50.    tellTarget("BLUE/tile" add BLANK)
  51.    {
  52.       gotoAndStop("blank");
  53.    }
  54.    tellTarget("YELLOW/tile" add BLANK)
  55.    {
  56.       gotoAndStop("blank");
  57.    }
  58.    tellTarget("GREEN/tile" add BLANK)
  59.    {
  60.       gotoAndStop("blank");
  61.    }
  62.    tellTarget("BUMPER/tile" add BLANK)
  63.    {
  64.       gotoAndStop("blank");
  65.    }
  66.    tellTarget("SLIDER/tile" add BLANK)
  67.    {
  68.       gotoAndStop("blank");
  69.    }
  70.    tellTarget("GHOST/tile" add BLANK)
  71.    {
  72.       gotoAndStop("blank");
  73.    }
  74.    tellTarget("WHEEL/tile" add BLANK)
  75.    {
  76.       gotoAndStop("blank");
  77.    }
  78.    BLANK += "1";
  79. }
  80.